package cn.kgc.newmanager.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Detail {
    private Integer id;

    private Integer categoryid;

    private String title;

    private String summary;

    private String author;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cretedate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary == null ? null : summary.trim();
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public Date getCretedate() {
        return cretedate;
    }

    public void setCretedate(Date cretedate) {
        this.cretedate = cretedate;
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }
}